/*******************************************************************************

******************************************************************************/

#ifndef __USERPORT_H__
#define __USERPORT_H__

#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "usermodbus.h"
#ifdef __cplusplus
extern "C" 
#endif

typedef enum{
	ON=0,
	OFF,
}linestate;

typedef enum{
	online=0,
	offline,
}sersortype;

/****************************EVENT Definition***************************************/	
#define EVENT_ATConnect             (1 << 0)
#define EVENT_SocketConnect         (1 << 1)
#define EVENT_SocketDisconnect      (1 << 2)
#define EVENT_BeginCommunication    (1 << 3)
#define EVENT_func02OK               (1 << 4)
#define EVENT_func01OK               (1 << 5)
#define EVENT_NTPOK                  (1 << 6)
#define EVENT_Mode_gun               (1 << 7)
#define EVENT_Mode_lora              (1 << 8)


#define EVENT_thread_over_4             (1 << 9)
#define EVENT_thread_over_5             (1 << 10)
#define EVENT_thread_over_6             (1 << 11)
extern rt_event_t EVENTDevic;
#endif
/**********************end file**************************/

